#include <iostream>
using namespace std;

int n, a;    //获取输入
int res = 0; //存储答案

int main()
{
    cin >> n;
    while (n--)
    {
        cin >> a;
        res ^= a;
    }
    if (res)
        cout << "Yes";
    else
        cout << "No";
    return 0;
}